<template>
  <div class="container hd-article">
    <a
      href="#/news_list"
      class="home"
    >
      <van-icon name="fanhui2" />
    </a>
    <div class="title">{{newinfo.title}}</div>
    <div class="subtitle">{{subtitle}}</div>
    <p>Steven Paul Jobs was an American entrepreneur and business magnate. He was the chairman, chief executive officer, and a co-founder of Apple Inc.</p>
    <p>
      {{newinfo.content}}
    </p>
    <p>“翻开波澜壮阔的中国革命史，在为中国人民谋幸福、为中华民族谋复兴的道路上，曾有多少革命先烈，满怀理想信念，置个人生死安危于度外，前仆后继。”位于浙江嘉兴的南湖革命纪念馆馆长张宪义说，我们今天的幸福生活和强盛国力，正是革命先烈用鲜血和生命换来的。一个有希望的民族不能没有英雄，一个有前途的国家不能没有先锋，无论时空如何变迁，革命先烈应该永远受到人民的尊敬、爱戴和缅怀。</p>
  </div>
</template>

<script>
export default {
  name: 'news_detail',
  data () {
    return {
      title: '这个是标题测试',
      subtitle: '2018-09-12',
      newinfo: {}
    }
  },
  methods: {
    init () {
      this.$http({
        fun: 'getOrderInfoByPhone',
        code: this.$route.query.code,
        cb: res => {
          console.log(res)
          this.newinfo = res
        }
      })
    }
  },

  mounted () {
    this.init()
  }
}
</script>

<style scoped>
.home {
  position: fixed;
  bottom: 3em;
  right: 1em;
  font-size: 2em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 1em;
  text-align: center;
  line-height: 1.7em;
  background: rgba(245, 250, 247, 0.6);
}
a {
  color: #000;
}
</style>
